/* qor select one,many layout */

.qor-field__selectone {
    padding-top: 10px;
    .qor-field__selectone-trigger {
        font-size: 12px;
        padding: 0;
        &:hover,
        &:active,
        &:focus:not(:active) {
            background: none;
        }
    }
    .qor-field__selected {
        padding-top: 10px;
        margin: 0;
        > span,
        > a {
            display: inline-block;
            vertical-align: middle;
        }
        > span {
            font-size: 16px;
            color: rgb(33, 150, 243);
            cursor: pointer;
        }
        > a {
            color: unquote('rgba(#{$color-black}, 0.54)');
            font-size: 14px;
            line-height: 1;
            margin-left: 8px;
        }
    }
}

.qor-field__selectmany {
    .qor-field__selectmany-trigger {
        font-size: 12px;
        padding: 0;
        &:hover,
        &:active,
        &:focus:not(:active) {
            background: none;
        }
    }
    .qor-field__selected-many {
        margin-left: 0;
        margin-bottom: 0;
        padding-left: 0;
        > li {
            border: #e0e1e2 1px solid;
            background-color: #f8f9fa;
            border-radius: 2px;
            list-style: none;
            display: inline-block;
            vertical-align: top;
            margin: 0 6px 6px 0;
            line-height: 1;
            padding: 4px 8px;
            font-size: 12px;
            > span,
            > a {
                display: inline-block;
                vertical-align: middle;
            }
            > a {
                color: unquote('rgba(#{$color-black}, 0.26)');
                line-height: 1;
                margin-left: 8px;
                i {
                    width: 14px;
                    height: 14px;
                    font-size: 14px;
                }
            }
            .qor-selected-many__undo {
                color: #03a9f4;
                padding: 2px;
                text-decoration: none;
                display: none;
            }
            &.qor-selected-many__deleted {
                background-color: #f2f2f2;
                span {
                    text-decoration: line-through;
                    color: unquote('rgba(#{$color-black}, 0.26)');
                }
                .qor-selected-many__remove {
                    display: none;
                }
                .qor-selected-many__undo {
                    display: inline-block;
                }
            }
        }
    }
}

/* qor select one,many bottomsheets layout */

.qor-bottomsheets {
    .qor-select__select-icon {
        position: absolute;
        left: -32px;
        top: 50%;
        margin-top: -10px;
        color: unquote('rgba(#{$color-black}, 0.26)');
        i {
            color: unquote('rgba(#{$color-black}, 0.26)');
        }
    }
    tr.is_selected {
        .qor-select__select-icon {
            color: unquote('rgb(#{$color-primary})');
            i {
                color: unquote('rgb(#{$color-primary})');
            }
        }
    }
    .qor-selectmany__hint {
        font-size: 14px;
        position: fixed;
        z-index: 900;
        padding: 12px 12px 12px 54px;
        margin-top: -11px;
        box-sizing: border-box;
        background-color: #fff;
        width: $width-bottomsheet;
        > span {
            float: left;
            &.qor-selectmany__selectall {
                margin-right: 12px;
                cursor: pointer;
                color: unquote('rgb(#{$color-primary})');
            }
        }
        > a {
            float: right;
            text-decoration: none;
        }
    }
    .qor-page__header {
        position: fixed;
        top: auto;
        width: $width-bottomsheet;
        box-shadow: none;
        padding: 13px 0 0 54px;
        margin: -56px 0 0 0;
        background-color: #fff;
        > div:not(.qor-bottomsheet__filter) {
            display: none;
        }
        .qor-actions {
            padding: 0;
            margin-right: 6px;
            &:last-child {
                margin-right: 0;
            }
        }
    }
    .has-hint {
        .qor-selectmany__hint {
            margin-top: -56px;
        }
    }
    .has-hint.has-header {
        .qor-page__header {
            margin: -100px 0 0;
        }
        .qor-selectmany__hint {
            margin-top: -55px;
        }
    }
}
